<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1 id="d1" style="text-align: center;"></h1>
</body>
 <script>
 	var a=10;
     function jishi() {
         document.getElementById("d1").innerHTML=a;
         if (a == 0) {
 			window.location.href='https://www.baidu.com/'
             return;
         }
         document.getElementById("d1").innerHTML = a;
         setTimeout("jishi()", 1000);
 		a--;
     }
	  jishi()
 </script>
<html>
